import java.util.Random;

public class PP38
{
public static void main(String[] args)
{
Random x = new Random();
int num;
double A;//cos
double B;//sin
double C;//tan

num = x.nextInt(41)+20;

A = Math.cos(num);
B = Math.sin(num);
C = Math.tan(num);

System.out.println(A);
System.out.println(B);
System.out.println(C);
}
}
